package User;



import IOperation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/14
 * Time: 20:37
 * Description: No Description
 */
public class Admin extends Animal{

    public Admin(String name) {
        super(name);
        this.name = name;
        this.ioperations = new IOperation[] {
                new Exit(),
                new Add(),
                new Del(),
                new Find(),
        };
    }


    public int menu() {
        System.out.println(this.name+"你好！欢迎来到图书系统小练习");
        System.out.println("1.新增图书");
        System.out.println("2.删除图书");
        System.out.println("3.显示图书");
        System.out.println("0.退出系统");
        System.out.println("请选择:");
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        return input;
    }
}